updated groupbox with new constructor