code for using execute command to create dialog boxes