fixed several issues with the preview form