detach the view from the parent before adding to borderView

TIMOB-12134 - If the view already has a parent, we need to detach it before adding to the borderView. borderView is then added to the original parent.