fix bugs and add css.