added some touch event code