fix a lot of the preview behavior