add selectAll function for export