change confirmation dialog to modal window