setting up startmotion and stopmotion commands