Add logic to the settings UI