added inventorry click event