new css js changes

make the program more compact