fix model manager + store in memory the dialogues