made draggable methods accept element inputs