close form after the user call defaultHandler on 'onAdd' callback