Auto structure creation, events rebinding

Added new features:
1. Auto structure creation
2. Events rebinding

Bug fixes:
1. Dropdown css bug fixed.