Home page table and filtering

Leaving this one, though, as it's not new code, just code I've moved around.