adding didRotate callback