Switched to generic ViewGroup reference for generality.
Refactoring.
Removed unnecessary references to hostViewGroup