added touchend events to input and submit buttons