Angularjs- creating simple front-end apps using ui-router