converted users#update to ajax