Refactored trim links controller