setting the text/html mime type before anything else