MainActivity: Refactor groups fetching logic

Prepare for add/delete group

Signed-off-by: Peter Cai <xqsx43cxy@126.com>
MainActivity: Delete/Create groups

Signed-off-by: Peter Cai <xqsx43cxy@126.com>