create controller for locales