refactored most of index.html
disable submit buttons while submit in progress