finish routes and layouts