Added export and download feature