improved mousemove event listener
improved removeSelection
fixed condition in the history.pushChanges