add progress dialog to logout