take the id from the path param