update
clear state when offline/disconnect