added template with header and footer