Changes based on PR feedback:

  * Don't need view_page variable as it's no longer used
  * Simplify controller method