tweak display order logic