removing the visual element from the editor