Add/edit action for single rule