add logic for creation of tickets and replies