set up ui-router for front end