remove unusued code (hide/show buttons)