refactor html css and fix sonme bug