Final bug fixing for HTML5UI

Final bug fixing for HTML5UI.

Mostly related to authentication and tweaks on search.