add remove code to event listener;remove infinit loop which may casue program death
close all bug fixed
Merge remote-tracking branch 'origin/master' into scriptPluginTest
keep update with master