option for removing modal on hide