fixes #4 added preview widget feature
fixes #4 added preview widget feature