add tag and search function