added an event to the item button