using hg-ui-router for states management