set up search bar correctly, helper methods