Replace on demand dialog by on demand window