I have no idea related directly to your problem. However, I still don't understand what this "connected" and "disconnected" means if you're using webbrowser...webbrowser handles the connections itself, downloads the pages then displays them...there is no "connected" :-P