search on tags code updated