fixed basepath selecting for iframes