Add check for empty survey in preview. Clean up markup