I'd move the prompt completely out of the actions file.