dialogs: Cleanup and refactor some code

BLNPreference: Fix various fcs
CPUBoostPreference: minor cleanup
Utils: Refactor some code