updated rendering and fixed null pointer in inventoryPanel