Modify templates, add post calls in main.js