search functionality and linking categories