adds form in main page and reads params in index.js