added save button function without the db write (bugfix)