deleting tickets from table is now async
refactor javascript after ticket is destroyed