Moved action count check outside ShowPreviewDialog so we can show an error message specific to the action
Renamed Preview to PreviewWindow