set functions as Q_INVOKABLE