global controller for language