add nested res anchor popup function.