identify correct segment links and click on them based on user input