update editor: save function