update front end to use ui-router