hiding a button when not needed