basic display logic with windows