Make sure that detectViewChange is called on page load. Inconsistent behavior with iOS simulator.