change frame event and movement event callback function