Add a callback option when opening a modal