refactored new.html into index.html