minor changes in submit controller