Added WillRotate and DidRotate event handlers