finish layouts and routes