added callback for modals