style fixes for preview lib