cleanup and hiding button works