customized search bar
added additional method for categories