fixed issues with touch events