finish layout