finish layout and roootes