fixed the if statement on the todo.erb