added ability to detect change in settings