Updated to use Wordpress' built-in dialog option
fixing merge