add function to display searchwindow