refine css and javascript