complete CSV Download and Manage Edit function