deal with tag duplication, page move when edditing and adding