try to make preview open in a tab, not a new window.