Adds a max width to discussion pages

fixed, and refactored the whole thing