Added weak references inside closure to break retain cycles
weak references
Removed code from de app delegate