added functionality to menu options