changed the event handling so the parent controls the removal of the memberbox