code refactoring, clean up and fixed error when user first time go to home page, the data is not added to local cache. I was using $routeChangeStart but that is invoked late for root context