Added functionality to the buttons on the menu. not fully complete