using mouse to move node and link node