optimizing detail link call