master layout and pagination for frontpage