Made search bar work