replace name with agent name by check box