Refactored settings controllers.