Created the instances of the dialogs within the constructor of Gui
Bug fix on manager