Fix broken predictions page

  * button_to_function has been removed from Rails.
  * Many of the CSS styles were broken.