finish layout amd routes