Realize groups functionality with ugly design