corrected event handler name from click to extentchange.