adjust header rendering based on the viewer