use callbacks to signal the change of language