update iOS rotate and Gesture functionality