add css file and rewrite some code