changed save button functionality