Removed assignParent function and instead used NotificationCenter