added action to save button in attachements