move update todo logic to domain
move clear logic to domain