move languages to controller