added search page functionality