added draggable directions functionality