putting in functionality to control the viewer speed