search_main method for button