finish layout snd routes