Show the correct header bars buttons depending on the state