add rotate state control