minor fixes to create preview panel