refactor prediction controller create action