adding export functionality view