bug fixes for dragging, delete tasks