Basic navigation logic. Still learning about AngularJS