add event hendler
fix bugs
Merge remote-tracking branch 'origin/master'