wrote example submit function in submit controller