Refactored categories to class constant. Refactored controller view variable from hash to individual instance variables.