make id of the main into ID
change the action table