Fixed the problem with angular.js routing