Replaced unneeded conditionals for location with view_name string construction.