refactored main.qml to match.qml
new file