patched solution for crazy jqueryui behavior on click (used to assign
draggable classes)