created dialog.php but does not work yet