controller configurations changed to retain $scope name while minification
changed to make it compatible with bootstrap 3
cleaned up