changes for switch to jquery ui > 1.6