Changed to php so that headers and footers could be included using php