refactor predictions show page