Added the saveSettings method to the controller class