tried to move Angularjs declaration in different places of code
lesson about controllers