implemented put and delete in routes