improved main.qml