testing function for submit controller implemented