setParent functionality added to box item

Implemented the setParent function for a box item.