fix handler undefined issue and android selecting html5 inputs and selects