Changes routing structure from ngRoute to ui-router