Fix buttons show/hide