Create enableSelection function, Make selection available during export