Added necessary logic to show to modal popup via external link.