updated main_controller.js to use express