removed initTransaction method, not required.
added autoSubmit method.

added autoSubmit method to submit the form automatically.