Implementing the save button.