change display formatting to use classes