fix bug on language selector and modifiy config structure