add dialog when log out