changing names to dialog in functions.php