more logic to the links for selected + bootstrap