moved template header and footer into corresponding includes php files.