added support for submit type inputs