Refactor buttonUpdate_Click() 
to remove duplicate lines