Improved selector positioning and handling of external links.