update display logic