rebuilt on click handler for prompt modal