Flatten view hierarchy