get search functionality and pins redraw working