adding sleep to AppDetail because it needs it