update agent status