added event listener for recenter event