Refactored back link setup