added hide menu functionality to buttons and inputs