moved title declaration to end of head