Support for handling multiple windows