HI Praveen,
you are calling two different view right? i mean when you click on next button in first popup, you are calling second view only? If yes then you can add unmark_all code in do_init_context_node of the second view.
Best Regards,
Dharmakasi.