added save button function without the db write