adds motion events