designed the dynamic search bar