making a few improvements to make selection, copy events easier