Modularizing the search bar