Fix layout of pages