wiring in the MainCtrl's submit function
putting method on the MainService's prototype, so later on it can be overwritten by prototype inheritance