listen to shared prefrence changes and update UI