migrate touch API for mobile devices