added more functionality for the exam taking process