modified add tag feature