Main settings page refactoring.