update display after every swap