generate common header for page