-added search by category to nav bar and initialized it