Added agent details functionality to new rails