adding export to excel functionality