add some css files and reorganize the code in js files