HTML and inventory

added inventory function