Refactoring common functionality. Double Click shows preview window.  Preview Window fixes: export button, better sizing and positioning