Added the capability to work with unlimited nested views.

It used to work with only 1 level of depth with subviews, now it works with an unlimited level of nested views.