put events in proper place and allow dragging. Fix highlighting when dragging