template file support added for header and footer