resolved the error of rendering the search page
finished resolving both get and post rendering of search page