javascript improvements
new ui
error when input text is empty