Allow for custom close callback in toggleModal