use submit instead of button in many-to-many