finishes views and routes