Added functionality for selecting notes by dragging the mouse