separating directive from app declaration file
declaring a SettingsCtrl and removing jQuery event triggers in order to use angular ng-click for the same result