contract collection and creating sidebarview