separated layout from index

now called by framework instead