Add listener for loading and unloading player data