Added delete functionality to TicketTable and improved addFromProduct function