added canView from fiddle