added touch and resize