changing agent status
remove toggle and set the status directly