set add and edit submit actions