Added functionality to the edit inventory button