cleans up the newly redundant code in formEdit view