dialog boxes instead of alert boxes