Fix Draggable and Resizable JQuery UI behaviors