add css and fix some defects.