Add loader to main and signals to qml