fixed errors
working with controllers.js angular structure