CSS cleanup and add some helper functions at data generation.