added click-and-drag method to demo