Frontend tweaks

A bunch of grid-related frontend tweaks. Mostly aesthetic with a little code cleanup.