Applied layout to pages