clear element label if change element type