Bind popup links. Fix popup position