Update to ui-router

Refactor to use ui-router