Add API function for a popup window from a link