export selected items and grouped