Fix demotion order
Make WebGui perform commands