refactored options menu