Revert "Fixed bug with untitled title for dialog"

This reverts commit 102888907380f0f751ddf4eb539100477f06afa9.
implementation without extra argument