Added some hiding/showing functions for buttons based on the state