Function createObjectsPanelContent