add data categorization code and adjusted css