adding funcationality to the menu, back, and search buttons