Fixed bug in getting view. Should fix this inconsistency in using "view" vs "component" term