click out to exit preview, simplified with modal