Issue #92 Refactor code in TaskDetails