directive with header and footer added