added clear_buffer function & event to clear copied / cut nodes