Refactor display of config and stats