Using .on method to register change handler