change the action parameter from object to id