optionMenu refactored into view package