example for angularjs using ui-router states