Filter search bar logic implemented