I added downloading csv functionality