fixed todo.erb method errors and routing problems