made main template valid xhtml