class dialog storage system changed a bit
changed to std::shared_ptr