draft of formbuilder save function