Separated index into layout and page