add code to generate new prediction after a prediction is selected

fixes #92