fix some css bugs and js loading