mouse down and mousemove handling