get search and redraw pins functioning correctly