updated device motion plugin