Fix some css and js bugs.