Layout fixes. Many changes to structure please review.

I made a lot of changes to the layout. It was really broken on mobile. Looks better now but still needs some fixes. Please review before merge.