fix the bug of mistyping the url of ajax request.
fix bugs of displaying recognition result and history