changes to how the addForm function works