move category display logic from entry view into model