reordered dispatch calls for app entering background