ui: Fix some html tag.
ui: Refactor some javascript.