Added support for getting windows and switching between them