change orientation checking for iPad and simulator