app: add method SetUnitStatus

Related to #854.