modal confirm dialog when you click the resign button