finish layout and routes (Chap 5)