updated using siteStates and ui router