added controller to download as csv