assign callbacks for started/stopped typing events