replace DOM mutation event listener to Mutation Observer