updating code for recent activeadmin changes