Fixed a bug involving dragging items around, and refactored a bit regarding dragging products around.