when multiple modal are present in the page, ensure that we open the fresh one