use nearestOfType instead of chaining parentView calls