Yay for moving business logic into the view!

Though, now that I'm looking at it, I'm wondering if this should go in the model instead.