added support for touch screens