adds close button to search window