Matching layout to main page