updating settings logic