Added dragging functionality to entities