Moved retrieving of stored lines to onResume