code organization, dont show purchased list if no items are present