added search bar filtering functionality