refactor greeting and menu