There may be more than one form on a page and therefore attachToForm may be called multiple times.