added remaining and inflection properties in todos controller