added smart-window-rotate