Switch windows and resize windows