Use single dialog for adding and editing action.