Add before-form and after-form blocks