add css and clean code for graph