search function in navbar works