rewrite the css
add some function