fixed handlers to return index page on invalid search