register form submit handlers by dom attributes