Saving before changing qml ui