Added touch event functionality