change the constructor function in submit button listener
remove javadoc