moving analytics and header into partials