Updated main.js server calls