$scope is not working on a certain controller