-fixed bug with title and close dialog