Extract display logic from cc function