Refactor mode identifiers (make them look as variables names, that will be used when the settattr system will be implemented)
Add panel control in example
Add modes control
Fix bugs with modes and panels stateChanged