some magic with activeadmin