udpate settings.