added new ticket and logic for tickets