add event for move openGL viewer