add url as a parameter to the preview wrapper