Add functionality to menu bar