Added nil checking for takeoff and preview views