added bargoup and viewgroup