finish layout on index