angular ui state and stateProvider snippets defined