add css file and initcomponent function.