update logoff method