Converting the addition and editing of actions to Ajax.