ProgressBar works in lectuererScreen, but now the app crashes if you change pages in the lecturere screen and quit the presentation