Add states when clicking on the menu.