refactored to use ui.router

https://github.com/angular-ui/ui-router
Signed-off-by: Jon Yardley <Jon.Yardley@digitaslbi.com>