javascript improvements
new ui