csv button reimplemented