Add preview mode into library form