added the new interface, changed index, and main.js