Implementing header and footer templates