update logic for activeadmin