Add ref to activeadmin. Change locale logic