initializing the delete question functionality