implement custom save options and expose saveForm function