As soon as I click the 'search' button, a window will appear. How can I make it show only one window? 