updating user update.js
Changed button to update / save depending on user action