Refactoring orders.
Fixed structure tree widget.
Refactor