small update on the ViewTicket. It correctly updates when opened by making viewticket class global