Added delegate for DataManager

Still fatal error: unexpectedly found nil while unwrapping an Optional value