- updated jqueryui links and revised the code