hooked up touch and resize events