Update structure and fix most of css and js bugs