Move setting save to model