Update prefrences