added touch device detection - fixes double event for orientation change and resize