initial helpers for working with inventory data structure, simple rendering