only save tags when save button is clicked