Implemented ability to switch windows