refactoring option page