changes dragend to click