SettingsController remove $scope

Refactored controller without reference to $scope