container display logic