added functionality to remove windows and rotate splits