Add isConnected
添加判断主界面是否运行
Rename listener
Add comment for methods
Fixed bugs