Fixed hide button behavior