Added functionality to the inventory button.