implements menu options and choice