before removing modalContent