auto-select last group
group functionality