updated code to support activeadmin v0.6