finish layout and routes