finished the search functionality.
made a redirect on httpExeption