refactor extract style elment into css