updating code for new rails admin