fix (bugs): display issues that caused incorrect windows to show on top