autoreload only when in preview mode