Adding thumbs and delete fuction for events.