store model in rootScope