Saving items in formbuilder now works better

Fixed a bug where hitting the save button with several items in edit mode would only save the first item.