Implemented update methods and use update attributes in qml.