javascript code cleaning
new ui