Added rotation saving state