Refactor 'dialogManager'