added option to refresh preview generation