changed methods in RealEstateApplication to synchronized ones to avoid race conditions when modifying mDownloadTasks