some changes to html and javascript