First stab at merge button, albeit the visibility stuff doesn't work