display based on layout