finish layout and routes'