add listeners for center changed and marker clicked