add a preview widget