Re-added registration for shared preferences changing