made the view route work