adding tag search functionality