More about dialog work, XML serializer fixes