move button hide to cmstheme