updated jqui functionality)