setting max widths and stuff