change display config to use classes instead of dicts
adapt display config change