just add record and stop function in the event move function