mark subviews with the correct type