connect the view up to routes