1. bug fix for gen script
2. bind more wx controls