auto or manual end exam.

Change logic for demo purpose. Check the "exam logic and demo related"
document