fix css and some func