Several corrections to draggable/resizable UI