Add language selector logic