added hack for touch devices