Add update function to settings