add a navbar to switch between states