Change QML: refactor WSCommand functions