move title to top of head and format head html