move qml code to qml2-code