Working out external content link in the pop-up menu.
Added clear method.