refactor done todos view and tests