20130918 Modify MainFrame, update network status when user connected and disconnected.
20130918 clean code.
fix conflict.