updating form api