Fixed bug: clicking Preview button causes Save button to open in a new browser window when clicked.
Cleaned up preview windows after we've tested their content.