fix some bugs and add some css files