finish layout & routes