add header and footer blocks