Sort modes and panels in examples
Fix new modes and panels behaviour on state changed