Quick fix, moved models to header to be used in analytics page.