setting angularjs to manage routes