refactor, auto add id to css