made functional search page