Corrected the #14

Implemented a look-up control to ensure each window can be displayed only once.