add search bar input into globals