added motionEvent