change delete empty tag to after_update instead of after_save