finish routes and layout