created separate onExtentChange event handler