Adding submit controller to main.html