added a working searchbar - finally