redesign Preview widget, exit with segfault