added code that ebables the display and removal of the custom windows