ticket destroy function added