comment name rename state onchange