move confirm dialog to service