fix qml-viewer start and stop