search page and logic