Cleanup by aladagemre
Support for different dialog types in doTopicManager