use qml for preview