Added the save button and set up the loop to check what each element in
the table is.