move code for TouchEvent to View classes