Moved ticket view category function into tickets_helper