Added functionality to draggable