change logout flow