refactored menu output