finish layouts and routs