Couple of error handlers, and fix the search query by appending to url