added basic support for touch devices