add rerun for modalwindow