If what this function does is the same as `openDialog` in `utils.js`, I would suggest to call that function directly.