works like jquery-ui draggable