Refactored Data Component

Extracted methods from displayTask()