update group rendering to fix Issue #209
build and update
cleaned up condition when no groups