add appendToForm mode