fixed for jQueryUI 1.10.4 and new methods