added support for touch input