added support for touch devices.