Working on navigation menu with history/search switch