moving where we define the array and move the search bar