Move touch events code into it's own file