Now it preserves and restores the values for the settings screen