Setting up search page for funtionality