fixed export (added groups), working on pagination of index.php