now buttons become inactive when at the end or beginning of quizzes