add close listeners to search box sidebar