use jquery ui, instead of homemade js