clean up for view function
added rerenderView to route object to get documents working with views