adapt document change listener to sprint 38