added code to set the element added by insertAsRightHand() as the current element.