add a put route
change the way to initialize the model