populate the settings page correctly with existing values