added rotate windows.