button enabling fix