Handle rotation while creating/editing data