Updated dismissal handler and clarified its purpose.