only render views when not a HEAD request