added simple dragging functionality to nodes