power and mode now works on test/ui.html