creates a generic delete dialog box and event handler in utility.js