working on tag delete function