Testing Dialog window instead of alert