add events for movement.