Add insertBefore and insertAfter methods to the Form class