add before callbacks for ticket model