changing dialog to HTML overlay