added feature to drag objects