move some touch event code to psiconfig class