Detach CSS text, and refine code and design