Add angular-ui-router state handler.