Update export excel function