finish layout adn routes