Adding functionality to the menu