Add listener for tracking resource changes