js code optimization
new UI