Brings the case specific logic for popups with the web content tool to the same place.