fixed some stuff but now dragging doesnt work