Added event handling to runtime created input elements.