call remove for modal on hide