Revert "Revert "Switch UIMode without reboot""

This reverts commit e81ba43dc172a490cea9162bcf3e6739496a463b.