add blocks header and footer