modified todos_controller and routes