DAR-2415 brought back hook method to modal.js which was used in ChatEntryPoint.js