added completed task functionality