[WIP] UI modernization and fixes

Fixes a range exception in the settings controller.