update the debug settings dialog and token expiry logic