function labelInfo = getHeaderLabels(h)

if ishandle(h.ActiveView)
    labelInfo = h.ActiveView.getHeaderLabels();
else    
    info = struct('name','Name', 'width', -1, 'icon', '');
    labelInfo = jsonencode(struct('columns', info));    
end