When deleting a group, switch to previous group

...insted of the previous configured group.

Closes #304