refactoring interactive menu