moved mouse/touch into helper