Finish layout and configure routes