Not a fan of the HTML here. Can this be passed off to a view instead?