agents page migration to new rails