adjusting layout width and header